using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class EnemyPanel3 : BasePanel
{
    static readonly string path = "UI/Panel/EnemyPanel3";
    public EnemyPanel3() : base(new UIType(path)) { }
    public override void OnEnter()
    {
        uitool.GetOrAddComponentInChildren<Button>("NextPage").onClick.AddListener(() =>
        {
            panelmanager.PopAndPush(new EnemyPanel4());
        });
        uitool.GetOrAddComponentInChildren<Button>("ExitButton").onClick.AddListener(() =>
        {
            panelmanager.Pop();
        });
        uitool.GetOrAddComponentInChildren<Button>("LastPage").onClick.AddListener(() =>
        {
            panelmanager.PopAndPush(new EnemyPanel2());
        });
    }
    public override void OnExit()
    {
        base.OnExit();
    }
}
